<template>
  <img alt="Vue logo" src="./assets/logo.png" />
</template>

<script>
import { onMounted } from "vue";
export default {
  name: "App",
  setup() {
    // 监听组件渲染完毕：发请求，操作dom，初始化图表
    onMounted(() => {
      console.log('onMounted 执行了')
    });



    // 多次定义，支持业务逻辑的拆分
    onMounted(() => {
      console.log('onMounted 再次执行了')
    });
  },
  // 选项API
  // created () {}
};
</script>

<style>
#app {
  font-family: Avenir, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-align: center;
  color: #2c3e50;
  margin-top: 60px;
}
</style>
